home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1242 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: kearneymac.appsig.com!user
  2. From: larry_kearney@appsig.com (Lawrence Kearney)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: HELP NEEDED:  Passing input to an already running program.
  5. Date: Fri, 12 Jan 1996 07:53:00 -0700
  6. Organization: Applied Signal Technology
  7. Message-ID: <larry_kearney-1201960753000001@kearneymac.appsig.com>
  8. References: <30F5BFB6.75CF@cnsunix.albany.edu>
  9. NNTP-Posting-Host: kearneymac.appsig.com
  10.  
  11. > I am writing an application that will "launch" another program called 
  12. > irc.  The problem is I need to pass input to irc once I invoke it from 
  13. > the original program.  IRC will be invoked using the funtion system().  
  14. > Once irc is called it takes input from the keyboard.  This is what I have 
  15. > tried so far:
  16.  
  17. You don't say which OS you are running your applications under but I
  18. assume that it is Unix. If so, you could try using sockets. This isn't the
  19. forum in which to educate you about them but think of them as a pipe into
  20. which you stuff data at one end and it is pulled out at the other. You can
  21. set them up so they can be used in either a synchronous or asynchronous
  22. mode. Look up how to use them in your system documentation.
  23.  
  24. -- 
  25. Larry Kearney                   |   "You want fries with that?"
  26. Applied Signal Technology       |
  27. larry_kearney@appsig.com        |
  28.